﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DbDoc.BusinessObjects
{
    [Serializable()]  
    public class Table :DbObject
    {
        #region Member Variables
        private IList<Column> _Columns = new List<Column>();
        #endregion

        #region Properties
        public IList<Column> Columns
        {
            get { return _Columns; }
            set { _Columns = value; }
        }

        public override DbType DbType
        {
            get { return DbType.Table ; }
        }

        public override IEnumerable<DbObject> Children
        {
            get { return _Columns.Cast<DbObject>(); }
        }
        #endregion
    }
}
